package DesignPattern.Proxy.CGLIB;

/**
 * @Author: Jun
 * @Date: 2018/9/28 11:53
 */
public class testCGLIBProxy {
    public void testCGLIBProxy(){
        CglibProxyExample cpe=new CglibProxyExample();
        ReflectServiceImpl obj= (ReflectServiceImpl) cpe.getProxy(ReflectServiceImpl.class);
        obj.sayHello("张三");
    }

    public static void main(String[] args) {
        testCGLIBProxy t=new testCGLIBProxy();
        t.testCGLIBProxy();
    }
}
